// ActionScript file
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.rpc.events.ResultEvent;

private var userId:String; //用户ID号;
		
private function loginValid( user:String, passwd:String ):void 
{
	UserService.getOperation('validInfo').send( user, passwd );
}
		
private function loginValidHandler( e:ResultEvent ):void
{
	CursorManager.removeBusyCursor();
	if( e.result )
	{
		userId = e.result.toString();
		backToNavi();
	}
	else
	{
		Alert.show( '登录失败，请检查用户名、密码是否正确' );
	}
}
		
private function goReg():void
{
	currentState="reg";
}